package xutils

import (
	"gitee.com/igolang/pkg/xredis"
	"time"
)

func RedisLocker(client *xredis.Client, key string, retries int, interval, expiration time.Duration) *xredis.RedisLocker {
	locker := xredis.NewRedisLocker(client, key)
	locker.WithConfig(retries, interval, expiration)
	return locker
}
